package com.yh;

import com.yh.entity.Bord;
import com.yh.entity.Vote;
import com.yh.service.IPagesService;
import com.yh.service.IVoteService;
import com.yh.service.impl.PagesService;
import com.yh.service.impl.Voteservice;
import org.junit.Test;

import java.util.List;

public class Demo1 {
    public static void main(String[] args) {
        IVoteService itd=new Voteservice();
       List<Vote> list= itd.showAll();

        for (Vote u:list) {
            System.out.println(u);
        }

    }


    @Test
    public void test01(){
        IPagesService ips=new PagesService();
      List<Bord> list= ips.getPage(3,1);

        for (Bord b:
             list) {
            System.out.println(
                    b.getbTitle()
            );
        }
    }
}
